import axios from '../utils/request'

//基础配置列表
export const SettingList = (data) => {
    return axios({
        method: 'get',
        url: '/xpert-api/common/config-manage/list?parentTag=' + data.title,
        // url: 'http://ceshifanyi.haiba.tech/api/chat_topics/chat',
        data
    })
}
//获取分类树
export const ClassificationTree = (data) => {
    return axios({
        method: 'get',
        url: '/xpert-api/common/industry-category/tree',
        // url: 'http://ceshifanyi.haiba.tech/api/chat_topics/chat',
        data
    })
}
//获取Topcs
export const TopicsList = (data) => {
    return axios({
        method: 'get',
        url: '/xpert-api/common/topics/list',
        // url: 'http://ceshifanyi.haiba.tech/api/chat_topics/chat',
        data
    })
}
//获取地区列表
export const AdddressList = (data) => {
    return axios({
        method: 'get',
        url: '/xpert-api/common/areas-us/list?parentCode=US',
        // url: 'http://ceshifanyi.haiba.tech/api/chat_topics/chat',
        data
    })
}
//获取地区列表
export const AddressList = (data) => {
    return axios({
        method: 'get',
        url: `/xpert-api/common/areas-us/list?parentCode=${data.par}`,
        // url: 'http://ceshifanyi.haiba.tech/api/chat_topics/chat',
        data
    })
}
//生成pdf
export const CreatePDF = (data) => {
    return axios({
        method: 'get',
        url: `/knowclub-api/knowclub/kc-club-article-user-center/viewInvoice?orderId=${data.orderId}`,
        // url: 'http://ceshifanyi.haiba.tech/api/chat_topics/chat',
        data
    })
}
//获取logo
export const GetLogo = (data) => {
    return axios({
        method: 'get',
        url: `/knowclub-api/common/config-manage/get?configTag=${data.config}`,
        // url: 'http://ceshifanyi.haiba.tech/api/chat_topics/chat',
        data
    })
}